﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace SortOf
{
    public class Queue
    {
        private ArrayList queue;

        public Queue()
        {
            queue = new ArrayList();
        }

        public void EnQueue(IComparable item)
        {
            queue.Add(item);
        }

        public void DeQueue()
        {
            queue.RemoveAt(0);
        }

        public object Peek()
        {
            return queue[0];
        }

        public void ClearQueue()
        {
            queue.Clear();
        }

        public int Count()
        {
            return queue.Count;
        }
    }
}
